package com.xxx.service;

import com.xxx.mapper.UserMapper;
import com.xxx.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/8/26 9:47
 * @Copyright 博为峰
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User queryUserByNamePwd(User user) {
        return userMapper.queryUserByNamePwd(user);
    }

    @Override
    public List<User> getUserList() {
        return userMapper.getUserList();
    }
}
